package cursopoo.herramientas

import java.awt.Graphics2D
import java.awt.Color
import java.awt.Shape
import groovy.transform.Immutable
import groovy.transform.TupleConstructor

class FiguraColoreada {
    Shape shape
    Color color

    public void paintOn(Graphics2D g) {
        g.setColor(this.color)
        g.fill(shape)
    }
}
